package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * opc全量位号表 实体类
 * 表名：risk_opc_tags
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "risk_opc_tags")
public class RiskOpcTags implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 位号名称
     */
    @Column(name = "opc_tag_name", nullable = false, length = 128)
    private String opcTagName;
    
    /**
     * 位号显示名称
     */
    @Column(name = "browse_name", length = 128)
    private String browseName;
    
    /**
     * 
     */
    @Column(name = "alarm_desc", length = 65535)
    private String alarmDesc;
    
    /**
     * 位号值类型
     */
    @Column(name = "tag_val_type", length = 32)
    private String tagValType;
    
    /**
     * 
     */
    @Column(name = "client_handle")
    private Long clientHandle;
    
    /**
     * 
     */
    @Column(name = "server_handle")
    private Long serverHandle;
    
    /**
     * 订阅状态（0未订阅，1已订阅）
     * 默认值: 0
     */
    @Column(name = "sub_status", nullable = false)
    private Byte subStatus;
    
    /**
     * 分组
     * 默认值: 默认分组
     */
    @Column(name = "equip_code", nullable = false, length = 128)
    private String equipCode;
    
    /**
     * 当层菜单表id
     */
    @Column(name = "opc_menu_id")
    private Long opcMenuId;
    
    /**
     * 顶层分组
     */
    @Column(name = "top_equip_code", nullable = false, length = 128)
    private String topEquipCode;
    
    /**
     * opc采集器ID
     */
    @Column(name = "opc_info_id")
    private Long opcInfoId;
    
    /**
     * 
     * 默认值: 0
     */
    @Column(name = "int_value")
    private Integer intValue;
    
    /**
     * 
     * 默认值: 0
     */
    @Column(name = "double_value")
    private Double doubleValue;
    
    /**
     * 0false1true
     * 默认值: 0
     */
    @Column(name = "bool_value")
    private Byte boolValue;
    
    /**
     * 租户主键
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 是否删除（0、否1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time", length = 20)
    private String createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by")
    private Long createBy;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time", length = 20)
    private String updateTime;
    
    /**
     * 更新者
     */
    @Column(name = "update_by")
    private Long updateBy;
    
    @Override
    public String toString() {
        return "RiskOpcTags{" +
            "id=" + id +
            ", opcTagName=" + opcTagName +
            ", browseName=" + browseName +
            ", alarmDesc=" + alarmDesc +
            ", tagValType=" + tagValType +
            ", clientHandle=" + clientHandle +
            ", serverHandle=" + serverHandle +
            ", subStatus=" + subStatus +
            ", equipCode=" + equipCode +
            ", opcMenuId=" + opcMenuId +
            ", topEquipCode=" + topEquipCode +
            ", opcInfoId=" + opcInfoId +
            ", intValue=" + intValue +
            ", doubleValue=" + doubleValue +
            ", boolValue=" + boolValue +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 